# -*- coding:utf-8 -*-


class Course:
    def __init__(self, grade_name, point, score, mode, attribute, time):
        self.name = grade_name  # 课程名
        self.point = int(point)  # 学分
        self.score = float(score)  # 成绩
        self.mode = mode  # 修读方式 正常、重修
        self.attribute = attribute  # 课程属性
        self.time = time  # 考试时间

    def __str__(self):
        return ("{" + str(self.name) + "," + str(self.point) + "," + str(self.score) + ","
                + str(self.mode) + "," + str(self.attribute) + "," + str(self.time) + "}").encode("utf8")
